import {HTTP} from '../../utils/http.js'
class KeywordModel extends HTTP{
  key = 'q'
  max = 10
  constructor(){
    super()
  }

  getHistory(success){
    this.request({
      url:'/ai/draw/search/get/history',
      success:success
    })
  }

  getHot(success){
    this.request({
      url:'/ai/draw/search/get/recommend',
      data: {
        topNum: 6
      },
      success:success
    })
  }

}

export { KeywordModel}